home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / widget / r3guitab.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  1.7 KB  |  74 lines

  1.  
  2. // JavaScript wrapper for r3guitab.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_GUITAB_H = 1;
  7. include("real/gadget/r3mantab.js")
  8.  
  9.  
  10. var R3CLID_GUITAB = 1868;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Adds a tab
  16. // Returns: Object, the droptarget window in the newly added tab
  17. // p1: Integer, index of the new tab
  18. // p3: String, label for the new tab
  19.  
  20. R3GUITABM_ADDTAB = 1868000;
  21.  
  22. function mR3GUITABM_ADDTAB(p1, p3) {
  23.   return R3ToJS(  DoA2(this.r3obj, 1868000, p1, R3TID_INTEGER, 0, p3, R3TID_STRING, 0));
  24. }
  25.  
  26. // Returns: Boolean, TRUE if successful
  27. // p3: Integer, index of the tab to delete
  28.  
  29. R3GUITABM_DELETETABBYINDEX = 1868001;
  30.  
  31. function mR3GUITABM_DELETETABBYINDEX(p3) {
  32.   return   DoA(this.r3obj, 1868001, p3, R3TID_INTEGER, 0);
  33. }
  34.  
  35. // Returns: Boolean, TRUE if successful
  36. // p3: String, label of the tab to delete
  37.  
  38. R3GUITABM_DELETETABBYLABEL = 1868002;
  39.  
  40. function mR3GUITABM_DELETETABBYLABEL(p3) {
  41.   return   DoA(this.r3obj, 1868002, p3, R3TID_STRING, 0);
  42. }
  43.  
  44. // Description: See if the given tab already exist and return the window associated with it.
  45. // Returns: Object, window corresponding the tab
  46. // p3: String, tab label    
  47.  
  48. R3GUITABM_FINDTAB = 1868003;
  49.  
  50. function mR3GUITABM_FINDTAB(p3) {
  51.   return R3ToJS(  DoA(this.r3obj, 1868003, p3, R3TID_STRING, 0));
  52. }
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59. function r3Guitab () { 
  60.    this.base = r3God;
  61.    if(arguments.length) {
  62.       this.base(R3CLID_GUITAB, arguments);
  63.    }
  64.    // Methods
  65.    this.ADDTAB=mR3GUITABM_ADDTAB;
  66.    this.DELETETABBYINDEX=mR3GUITABM_DELETETABBYINDEX;
  67.    this.DELETETABBYLABEL=mR3GUITABM_DELETETABBYLABEL;
  68.    this.FINDTAB=mR3GUITABM_FINDTAB;
  69.  
  70.    // Attributes
  71. }
  72.  
  73. r3Guitab.prototype=new r3Managedtabbed;
  74. // r3guitab.h_H